output &#nnn; instead of &#xnnn; since expat doesn't like the latter
authorparkrrrr <parkrrrr@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Mon, 19 Jan 2004 20:32:21 +0000 (20:32 +0000)
committerparkrrrr <parkrrrr@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Mon, 19 Jan 2004 20:32:21 +0000 (20:32 +0000)
gpsbabel/util.c

index 2cb9f1c5dd93f97cd96f72c89e9ff981cecac727..fd1d63215a33680bb03f53130732e5fabf2ea479 100644 (file)
@@ -660,7 +660,7 @@ char * xml_entitize(const char * str)
                        
                        utf8_to_int( cp, &bytes, &value );
                        cp += bytes-1;
-                       elen += sprintf( tmpsub, "&#x%x;", value ) - bytes;
+                       elen += sprintf( tmpsub, "&#%d;", value ) - bytes;
                        nsecount++;     
                }
        }
@@ -705,7 +705,7 @@ char * xml_entitize(const char * str)
                                else {
                                        xstr = NULL;
                                }
-                               sprintf( p, "&#x%x;", value );
+                               sprintf( p, "&#%d;", value );
                                p = p+strlen(p);
                                if ( xstr ) {
                                        strcpy( p, xstr );